<legend class='hyc-legend'>
    <span>角色列表</span>
</legend>
<div class="panel-title" style="padding-bottom: 12px;">
    <div class="btn btn-warning btn-sm" ui-sref="role-edit" >新增角色</div>
</div>
<table class="table table-bordered">
    <tr>
        <th class="text-center">序号</th>
        <th class="text-center">标题</th>
        <th class="text-center">操作</th>
    </tr>
    <tr ng-repeat="item in roleObj.list track by $index" ng-if="roleObj.list.length > 0">
        <td class="text-center">{{$index + 1}}</td>
        <td>{{item.name}}</td>
        <td class="text-center">
            <a ui-sref="role-edit({id: item.id})">修改</a>&nbsp;
            <a href="javascript: void(0);" ng-click="roleObj.remove(item.id)">删除</a>
        </td>
    </tr>
    <tr ng-if="roleObj.list.length <= 0">
        <td class="text-center" colspan="5">暂无角色数据</td>
    </tr>
</table>